*Replication package for VannoniAshMorelli2019 - Online Appendix

*ssc install binscatter
*ssc install reghdfe
*ssc install outreg2
*ssc install grstyle
*ssc install ftools
*ssc install lgraph

set scheme aspen  /* in order to reproduce the graphs as they look like in the paper the user generated scheme aspen (provided in the replication package) needs to be used */


grstyle init
grstyle set plain, horizontal grid

clear
set more off
use "VannoniAshMorelli_2019.dta", clear

xtset state year, yearly delta(2)

*\Table A4
label variable log_obligation "Log Delegation"

preserve

keep treat_dummy drafting_system divided_gov_biennium civil_service_reform_biennium1 civil_service_reform_biennm_rpl log_provisions log_entitlement log_constraint log_permission log_obligation drafting_system 

outreg2 using Table_a4, tex replace sum(log) label 

restore

*\ Table A5

reghdfe log_entitlement  civil_service_reform_biennium1 , a(state) cl(state)
outreg2 using Table_a5, tex replace keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  log_entitlement civil_service_reform_biennium1 drafting_system divided_gov_biennium  i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a5, tex append keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  log_entitlement civil_service_reform_biennium1 drafting_system divided_gov_biennium L1.log_entitlement i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a5, tex append keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X, Lagged DV, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')


foreach x in   log_constraint log_permission log_obligation     {

reghdfe  `x' civil_service_reform_biennium1 , a(state) cl(state)
outreg2 using Table_a5, tex append keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  `x' civil_service_reform_biennium1 drafting_system divided_gov_biennium  i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a5, tex append keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  `x' civil_service_reform_biennium1 drafting_system divided_gov_biennium L1.`x' i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a5, tex append keep(civil_service_reform_biennium1) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X, Lagged DV, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

}

*\Table A6
preserve
keep if civil_service_reform_biennium1==0


reghdfe log_provisions  divided_gov_biennium , a(state) cl(state)
outreg2 using Table_a6, tex replace keep(divided_gov_biennium) label   ctitle(Leg Detail) nocons nor2  addtext(State FE, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  log_provisions divided_gov_biennium drafting_system   i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a6, tex append keep(divided_gov_biennium) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')
reghdfe  log_provisions divided_gov_biennium drafting_system  L1.log_provisions i.year i.state#c.year, a(state) cl(state)
outreg2 using Table_a6, tex append keep(divided_gov_biennium) label   ctitle(Leg Detail)  nocons nor2 addtext(State FE, X, Time FE, X, State-Specific Trends, X, Controls, X, Lagged DV, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

restore

*\Table A7
label variable unified_gov_biennium "Unified Government"

preserve

keep unified_gov_biennium del_final log_delegation_ratio1 log_delegation_ratio log_constraint_ratio1

outreg2 using Table_a7, tex replace sum(log) label 

restore

*\Table A8

reghdfe log_delegation_ratio1 unified_gov_biennium, a(state year) cl(state)
outreg2 using Table_a8, tex replace  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

reghdfe log_delegation_ratio1 unified_gov_biennium  c.year#i.state L1.log_delegation_ratio1, a(year state) cl(state)
outreg2 using Table_a8, tex append  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X, State-time Trends, X, Lagged DV, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

reghdfe log_delegation_ratio1 unified_gov_biennium  c.year#i.state civil_service_reform_biennium1, a(year state) cl(state)
outreg2 using Table_a8, tex append  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X, State-time Trends, X, Civil Service, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

*\Table A9


reghdfe log_delegation_ratio unified_gov_biennium, a(state year) cl(state)
outreg2 using Table_a9, tex replace  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

reghdfe log_delegation_ratio unified_gov_biennium  c.year#i.state L1.log_delegation_ratio, a(year state) cl(state)
outreg2 using Table_a9, tex append  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X, State-time Trends, X, Lagged DV, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')

reghdfe log_delegation_ratio unified_gov_biennium  c.year#i.state civil_service_reform_biennium1, a(year state) cl(state)
outreg2 using Table_a9, tex append  keep(unified_gov_biennium) label title("Effect of Unified Government on Delegation to the Governor") nocons nor2 addtext(State FE, X, Year FE, X, State-time Trends, X, Civil Service, X) noaster   nonotes addnote(SE clustered by `e(clustvar)')


*\Figure A3
binscatter del_final unified_gov_biennium , absorb(state) controls(i.year) nquantiles(23) ytitle("Delegation Ratio Gov") xtitle("Unified Government") savegraph(gr1a.gph) replace
graph export Figure_a3.pdf, replace
